
  // 通过blod url 方法引入
  import { workerCode } from './worker.js'
  const code = `(${workerCode})()`
  const blob = new Blob([code], { type: 'application/javascript' })
  const url = URL.createObjectURL(blob)
  const worker = new Worker(url,{name:'worker1',type:'module'})
  worker.postMessage('nihao')